config: add default value for dhcpv6_pd_min_len
authorDavid Härdeman <[email protected]>
Sun, 14 Dec 2025 12:17:06 +0000 (13:17 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 14 Dec 2025 19:35:08 +0000 (20:35 +0100)
commit35f0e05a16a0e7540db32ca4ceea5d80f9e2a82a
tree98b2f2da7fd9f7df4699a2ff5fc85650a98528ed
parent62113d007a6a18668cdcbb52811a1b79630f5848
config: add default value for dhcpv6_pd_min_len

Right now, dhcpv6_pd_min_len is zero, meaning any request would be
accepted (as long as it fits what we have available).

That means that with a /56 (a common residential scenario), a downstream
router can request a /57 and gobble up 1/2 of the available address
space. Even a default dhcpv6_pd_min_len value of 60 means that we'd
support 15 PDs in total.

So let's err on the side of caution and set /62 as the default, people
who want larger allocations can easily override the default.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/357
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
README.md
src/config.c